#ifndef APPSETTING_H
#define APPSETTING_H

#include <QObject>
#include <map>

class YDAppSettings : public QObject
{
    Q_OBJECT
public:
    explicit YDAppSettings(QObject *parent = 0);
    
    QString get(const QString& key);
    void set(const QString& key, const QString& value);

signals:
    void sigValueChanged(const QString& key, const QString& value);

private:
    typedef std::map<QString, QString> map_t;

    map_t settingMap;
};

#endif // APPSETTING_H
